package jin.si.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class JsUserAddress {

  private Integer addressId;//用户地址主键
  private Integer userId;//用户id
  private String recipientName;//收件人姓名
  private String contactNumber;//联系电话
  private String standbyTelephone;//备用电话
  private Integer province;//省份
  private String provincee;
  private Integer city;//城市
  private String cityy;
  private Integer area;//地区
  private String areaa;
  private String specificAddress;//具体地址
  private String postalCode;//经度
  private String longitude;//纬度
  private String latitude;//是否默认(2:是,3:否)
  private Integer isDefault;//邮政编码
  private String createId;//创建人
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date createDate;//创建时间
  private String updateId;//修改人
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date updateDate;//修改时间
  private Integer countNum;//算总数
  private Boolean checked = false;

  public JsUserAddress() {
    super();
  }

  public JsUserAddress(Integer addressId, Integer userId, String recipientName, String contactNumber, String standbyTelephone, Integer province, String provincee, Integer city, String cityy, Integer area, String areaa, String specificAddress, String postalCode, String longitude, String latitude, Integer isDefault, String createId, Date createDate, String updateId, Date updateDate, Integer countNum, Boolean checked) {
    this.addressId = addressId;
    this.userId = userId;
    this.recipientName = recipientName;
    this.contactNumber = contactNumber;
    this.standbyTelephone = standbyTelephone;
    this.province = province;
    this.provincee = provincee;
    this.city = city;
    this.cityy = cityy;
    this.area = area;
    this.areaa = areaa;
    this.specificAddress = specificAddress;
    this.postalCode = postalCode;
    this.longitude = longitude;
    this.latitude = latitude;
    this.isDefault = isDefault;
    this.createId = createId;
    this.createDate = createDate;
    this.updateId = updateId;
    this.updateDate = updateDate;
    this.countNum = countNum;
    this.checked = checked;
  }

  public Integer getAddressId() {
    return addressId;
  }

  public void setAddressId(Integer addressId) {
    this.addressId = addressId;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public String getRecipientName() {
    return recipientName;
  }

  public void setRecipientName(String recipientName) {
    this.recipientName = recipientName;
  }

  public String getContactNumber() {
    return contactNumber;
  }

  public void setContactNumber(String contactNumber) {
    this.contactNumber = contactNumber;
  }

  public String getStandbyTelephone() {
    return standbyTelephone;
  }

  public void setStandbyTelephone(String standbyTelephone) {
    this.standbyTelephone = standbyTelephone;
  }

  public Integer getProvince() {
    return province;
  }

  public void setProvince(Integer province) {
    this.province = province;
  }

  public String getProvincee() {
    return provincee;
  }

  public void setProvincee(String provincee) {
    this.provincee = provincee;
  }

  public Integer getCity() {
    return city;
  }

  public void setCity(Integer city) {
    this.city = city;
  }

  public String getCityy() {
    return cityy;
  }

  public void setCityy(String cityy) {
    this.cityy = cityy;
  }

  public Integer getArea() {
    return area;
  }

  public void setArea(Integer area) {
    this.area = area;
  }

  public String getAreaa() {
    return areaa;
  }

  public void setAreaa(String areaa) {
    this.areaa = areaa;
  }

  public String getSpecificAddress() {
    return specificAddress;
  }

  public void setSpecificAddress(String specificAddress) {
    this.specificAddress = specificAddress;
  }

  public String getPostalCode() {
    return postalCode;
  }

  public void setPostalCode(String postalCode) {
    this.postalCode = postalCode;
  }

  public String getLongitude() {
    return longitude;
  }

  public void setLongitude(String longitude) {
    this.longitude = longitude;
  }

  public String getLatitude() {
    return latitude;
  }

  public void setLatitude(String latitude) {
    this.latitude = latitude;
  }

  public Integer getIsDefault() {
    return isDefault;
  }

  public void setIsDefault(Integer isDefault) {
    this.isDefault = isDefault;
  }

  public String getCreateId() {
    return createId;
  }

  public void setCreateId(String createId) {
    this.createId = createId;
  }

  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }

  public String getUpdateId() {
    return updateId;
  }

  public void setUpdateId(String updateId) {
    this.updateId = updateId;
  }

  public Date getUpdateDate() {
    return updateDate;
  }

  public void setUpdateDate(Date updateDate) {
    this.updateDate = updateDate;
  }

  public Integer getCountNum() {
    return countNum;
  }

  public void setCountNum(Integer countNum) {
    this.countNum = countNum;
  }

  public Boolean getChecked() {
    return checked;
  }

  public void setChecked(Boolean checked) {
    this.checked = checked;
  }

  @Override
  public String toString() {
    return "JsUserAddress{" +
            "addressId=" + addressId +
            ", userId=" + userId +
            ", recipientName='" + recipientName + '\'' +
            ", contactNumber='" + contactNumber + '\'' +
            ", standbyTelephone='" + standbyTelephone + '\'' +
            ", province=" + province +
            ", provincee='" + provincee + '\'' +
            ", city=" + city +
            ", cityy='" + cityy + '\'' +
            ", area=" + area +
            ", areaa='" + areaa + '\'' +
            ", specificAddress='" + specificAddress + '\'' +
            ", postalCode='" + postalCode + '\'' +
            ", longitude='" + longitude + '\'' +
            ", latitude='" + latitude + '\'' +
            ", isDefault=" + isDefault +
            ", createId='" + createId + '\'' +
            ", createDate=" + createDate +
            ", updateId='" + updateId + '\'' +
            ", updateDate=" + updateDate +
            ", countNum=" + countNum +
            ", checked=" + checked +
            '}';
  }
}
